const path = require("path");
const resolve = file => path.resolve(__dirname, file);
module.exports = {
  productionSourceMap: false,

  //   devServer: {
  //     proxy: {
  //         '/api': {
  //             target: process.env.VUE_APP_API,
  //             changeOrigin: true,
  //             secure: process.env.SEV_ENV == "prod" ? false : true, //此处要打开!!!!!!!
  //             pathRewrite: {
  //                 '^/api': ''
  //             }
  //         },
  //     },

  transpileDependencies: ["csy"],

  publicPath: "/csy",
  outputDir: 'dist/built',
  filenameHashing: true,

  chainWebpack: (config) => {
    //修改文件引入自定义路径
    config.resolve.alias.set('@', resolve('src'))
  },

  lintOnSave: false
}


